package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class PayOrder implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 业务单号       db_column: bussiness_no 
     */	
	private java.lang.String bussinessNo;
    /**
     * 支付订单号(微信或支付宝的单号)       db_column: pay_order_no 
     */	
	private java.lang.String payOrderNo;
    /**
     * 订单id       db_column: order_id 
     */	
	private java.lang.String orderId;
    /**
     * 订单号       db_column: order_no 
     */	
	private java.lang.String orderNo;
    /**
     * 支付方式(0微信1支付宝2余额)       db_column: pay_type 
     */	
	private java.lang.String payType;
    /**
     * 创建时间       db_column: create_time 
     */	
	private java.util.Date createTime;
	//columns END

	public PayOrder(){
	}

	public PayOrder(
		java.lang.String id
	){
		this.id = id;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setBussinessNo(java.lang.String value) {
		this.bussinessNo = value;
	}
	
	public java.lang.String getBussinessNo() {
		return this.bussinessNo;
	}
	public void setPayOrderNo(java.lang.String value) {
		this.payOrderNo = value;
	}
	
	public java.lang.String getPayOrderNo() {
		return this.payOrderNo;
	}
	public void setOrderId(java.lang.String value) {
		this.orderId = value;
	}
	
	public java.lang.String getOrderId() {
		return this.orderId;
	}
	public void setOrderNo(java.lang.String value) {
		this.orderNo = value;
	}
	
	public java.lang.String getOrderNo() {
		return this.orderNo;
	}
	public void setPayType(java.lang.String value) {
		this.payType = value;
	}
	
	public java.lang.String getPayType() {
		return this.payType;
	}
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof PayOrder == false) return false;
		if(this == obj) return true;
		PayOrder other = (PayOrder)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

